package cc.mrbird.febs.power.service.impl;

import cc.mrbird.febs.power.entity.OrgInfo;
import cc.mrbird.febs.power.dao.OrgInfoMapper;
import cc.mrbird.febs.power.service.IOrgInfoService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author MrBird
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OrgInfoServiceImpl extends ServiceImpl<OrgInfoMapper, OrgInfo> implements IOrgInfoService {

    private final OrgInfoMapper orgInfoMapper;

    @Override
    public IPage<List<Map>> getOrgInfoByPage(Page page, OrgInfo orgInfo) {
        return orgInfoMapper.getOrgInfoByPage(page,orgInfo);
    }
}
